package com.rika.service.impl;

import com.rika.dao.UserModelDao;
import com.rika.pojo.UserModel;
import com.rika.service.UserModelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserModelServiceImpl implements UserModelService {
    @Resource
    private UserModelDao userModelDao;

    @Override
    public void addUserModel(UserModel userModel) {
        userModelDao.addUserModel(userModel);
    }

    @Override
    public List<Integer> selectByAccount(String Account) {
        return userModelDao.selectByAccount(Account);
    }

    @Override
    public void deleteModel(UserModel userModel) {
        userModelDao.deleteModel(userModel);
    }

    @Override
    public void deleteAllByAccount(String Account) {
        userModelDao.deleteAllByAccount(Account);
    }
}
